package org.example.javafx.UI.Fxml;

import javafx.fxml.FXMLLoader;

import java.net.URL;

public enum FxmlUI {
    hello("hello-view.fxml"),
    main("main.fxml");

    private final FXMLLoader fxmlLoader;
    private final URL fxmlUrlPath;

    FxmlUI(String fxmlPath) {
        fxmlUrlPath = getClass().getResource(fxmlPath);
        fxmlLoader = new FXMLLoader(fxmlUrlPath);
    }

    public URL getFxmlUrlPath() {
        return fxmlUrlPath;
    }

    public FXMLLoader getFxmlLoader() {
        return fxmlLoader;
    }


}
